package com.smarthome.core.operationservicemanager;

import java.util.List;

import com.smarthome.domain.bean.ShExpressFee;
import com.smarthome.domain.vo.boss.DataGrid;
import com.smarthome.domain.vo.boss.PageHelper;
import com.smarthome.domain.vo.boss.Tree;


/**
 * 
* @ClassName: ExpressFeeService
* @Description: 快递费service接口
* @author cyj
* @date 2016年4月20日 上午10:42:59
*
 */
public interface ExpressFeeService {

	/**
	 * 
	* @Title: getById
	* @Description: 根据id获取
	* @param id
	* @return 
	* ShExpressFee  
	* @throws
	 */
	ShExpressFee getById(Long id);
	
	
	
	/**
	 * 
	* @Title: qeuryDataGrid
	* @Description: 获取分页列表
	* @param expressFee
	* @param page
	* @return 
	* DataGrid  
	* @throws
	 */
	DataGrid qeuryDataGrid(ShExpressFee expressFee, PageHelper page);
	
	
	/**
	 * 
	* @Title: saveOrUpdate
	* @Description: 保存或修改
	* @param expressFee
	* @return 
	* Integer  
	* @throws
	 */
	Integer saveOrUpdate(ShExpressFee expressFee);
	
	/**
	 * 
	* @Title: delete 
	* @Description: 根据id删除 
	* @param id
	* @return
	* Integer
	* @throws 
	* @author cyj
	 */
	Integer delete(Long id);
	
	
	/**
	 * 
	* @Title: getExpressFeeProvince
	* @Description: 获取添加快递费用是可用的省份
	* @param expressId
	* @return 
	* List<Tree>  
	* @throws
	 */
	List<Tree> getExpressFeeProvince(Long expressId);
	
	/**
	 * 
	* @Title: getList
	* @Description: 获取列表
	* @param expressFee
	* @return 
	* List<ShExpressFee>  
	* @throws
	 */
	List<ShExpressFee> getList(ShExpressFee expressFee);
	
	/**
	 * 
	* @Title: add 
	* @Description: 批量添加 
	* @param t
	* @return
	* Integer
	* @throws 
	* @author cyj
	 */
	Integer add(ShExpressFee... t);
	
}
